package controllers

import (
	"github.com/astaxie/beego"
)

type BaseController struct {
	beego.Controller
}

func (this *BaseController) Prepare() {
	uid := this.GetSession("uid")
	if uid == nil || uid == ""{
		this.Redirect(beego.URLFor("LoginController.Get"), 302)
	}
}